<?php
if (eregi("block-Goods_Home.php",$_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}
global $themepath, $prefix, $db;

$totalhomeg = $db->sql_query("select * from ".$prefix."_shop where status='1' AND action='0' AND show_home='1'");
$g = 0;
$content = "";
while ($drow = $db->sql_fetchrow($totalhomeg)) {
    $pidhome = $drow[pid];
    $titlehome = $drow[title];
	$tomtat = $drow[description];
    $additionhome = $drow[addition];
if ($g > 0) {
$content  .= "<hr width=\"50%\" align=\"left\" style=\"border-style: dotted; border-width: 1px; margin-left: 15\">\n";
}
$content .=  "<div><li style=\"list-style-type: circle\" type=\"square\" class=\"storytitle\"><a href=\"".$themepath."modules.php?name=Shop&go=goods&pid=$pidhome\" class=\"storytitle\">$titlehome</a></li></div>\n";
$content  .= "<div style=\"margin-left: 15\">$tomtat</div>\n";
$g++;
}

?>